home *** CD-ROM | disk | FTP | other *** search
- Ascii:Start
- Win:Add("ASCII TABLE", 4, 4, 19, 62, Here)
- Display:"Ascii:Show(0)"
- Marker:"Button"
- Button:"&Upper ASCII", Row:17 Col:1 Wid:30 Action:"Ascii:Show(128)"
- Marker:"Exit"
- Button:"E&xit ", Row:17 Col:33 Wid:30 Action:"Null"
- Return (Ok)
-
- Ascii:Show(Base)
- New (Char)
-
- Win:Attr("Lo")
- Move:To(1,1)
-
- | Display 128 Ascii characters
- For (Char = Base Thru 127+Base)
- Str:Put(To:Str(Char,"000 "))
- Char:Put(Char)
- If ((Char %8)==7)
- Str:PutLine()
- Else
- Str:Put(" ")
- Win:Attr("No")
-
- | Change button to be the opposite of what is showing
- If (Base==0)
- Win:Chg("Button",17,1,19,33)
- Button:"&Upper ASCII", Row:17 Col:1 Wid:30 Action:"Ascii:Show(128)"
- Else
- Win:Chg("Button",17,1,19,33)
- Button:"&Lower ASCII", Row:17 Col:1 Wid:30 Action:"Ascii:Show(0)"
-
- Return (Ok)
-